Jump to content

Kısayol Ve Açılış İle İlgili 3 Soru.


PColik
 Share

Recommended Posts

arkadaşlar size yeni yaptığım küçük araçta kullanabileceğim 3 soru olacak.

1- Program sistem çubuğuna küçültülmüş olarak başlayacak.
2- Programa "Başlangıçta Çalıştır" diye bir checkbox eklicem. seçili olduğunda program windows başlangıcında çalışacak.
3- program sistem çubuğunda iken üste çıkarmak için Shift+ESC kısayolu kullanılacak.



yardımcı olursanız sevinirim. bu çok önemli.
Link to comment
Share on other sites

1-Projenin on show bölmüne;

[quote]Window.Minimize(Application.GetWndHandle());[/quote]
aklıma başka bir şey gelmiyor şimdi


2-Registry.SetValue(HKEY_LOCAL_MACHINE, "Software\\Microsoft\\Windows\\CurrentVersion\\Run", "Program ismi", _SourceFolder .. "\\" .. _SourceFilename, REG_SZ)

Edited by pilgetir
Link to comment
Share on other sites

[quote name='PColik' date='26 November 2011 - 20:18 ' timestamp='1322331515' post='1118837']
arkadaşlar size yeni yaptığım küçük araçta kullanabileceğim 3 soru olacak.

1- Program sistem çubuğuna küçültülmüş olarak başlayacak.
2- Programa "Başlangıçta Çalıştır" diye bir checkbox eklicem. seçili olduğunda program windows başlangıcında çalışacak.
3- program sistem çubuğunda iken üste çıkarmak için Shift+ESC kısayolu kullanılacak.



yardımcı olursanız sevinirim. bu çok önemli.
[/quote]

1- Actions> On Startup:

[code]Application.Minimize();[/code]

2- CheckBox On Click:

[code]if CheckBox.GetChecked(this, true)
Registry.SetValue(HKEY_LOCAL_MACHINE, "Software\\Microsoft\\Windows\\CurrentVersion\\Run", "Program ismi", _SourceFolder .. "\\" .. _SourceFilename, REG_SZ)
else
Registry.DeleteValue(HKEY_LOCAL_MACHINE, "Software\\Microsoft\\Windows\\CurrentVersion\\Run", "Program ismi")
end[/code]

3- Page>On Show:

Page.StartTimer(100, 1)

Page>On Timer:

[code]if e_ID == 1 then
if System.IsKeyDown(27) and System.IsKeyDown(16) then
Application.Restore()
end
end[/code]

Link to comment
Share on other sites

checkbox da kullandığım kod şu;


if CheckBox.GetChecked(this, true)
Registry.SetValue(HKEY_LOCAL_MACHINE, "Software\\Microsoft\\Windows\\CurrentVersion\\Run", "Kolay_Ara.exe", _SourceFolder .. "\\" .. _SourceFilename, REG_SZ)
else
Registry.DeleteValue(HKEY_LOCAL_MACHINE, "Software\\Microsoft\\Windows\\CurrentVersion\\Run", "Kolay_Ara.exe")
end



ve şu hatayı alıyorum;

[img]http://i.imgur.com/CV20a.png[/img]

Link to comment
Share on other sites

[codebox]
if CheckBox.GetChecked(this, true) then
Registry.SetValue(HKEY_LOCAL_MACHINE, "Software\\Microsoft\\Windows\\CurrentVersion\\Run","KolayAra",_SourceFolder.."\\".._SourceFilename, REG_SZ)
else
Registry.DeleteValue(HKEY_LOCAL_MACHINE, "Software\\Microsoft\\Windows\\CurrentVersion\\Run", "Kolay Ara")
end
[/codebox]

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...