kredzio Posted March 8, 2009 Share Posted March 8, 2009 (edited) Hello i have problem with starting Scripts... I run .exe with script and i can't starting it... This is my script $start = Iniread ("readme.ini", "startstop", "start", 1) $stop = Iniread ("readme.ini", "startstop", "stop", 1) HotKeySet($start, "mm") HotKeySet($stop, "end") While 1 Sleep(300) Wend Func mm() MsgBox (0, "wdssdd","sdddsds") EndFunc Func end() Exit 0 EndFunc My readme.ini file [startstop] start = "+{F8}" stop = "+{F7}" When i click Shift + F8 nothing to do I trying set another hotkeys, but all that same problem - nothing to do Anyone can help me? Edited March 8, 2009 by kredzio Link to comment Share on other sites More sharing options...
Izebize Posted March 8, 2009 Share Posted March 8, 2009 Try Func instead of Function. Link to comment Share on other sites More sharing options...
kredzio Posted March 8, 2009 Author Share Posted March 8, 2009 Yea sorry I have Func - not function... i manually write this code because... my script i have on another computer Link to comment Share on other sites More sharing options...
James Posted March 8, 2009 Share Posted March 8, 2009 $start = IniRead("readme.ini", "startstop", "start", 1) $stop = IniRead("readme.ini", "startstop", "stop", 1) HotKeySet($start, "mm") HotKeySet($stop, "end") While 1 Sleep(300) WEnd Func mm() MsgBox(0, "wdssdd", "sdddsds") EndFunc ;==>mm Func end() Exit 0 EndFunc ;==>end Works for me. You know that it's SHIFT+F8 and SHIFT+F7 which are you're hotkeys right/ Blog - Seriously epic web hosting - Twitter - GitHub - Cachet HQ Link to comment Share on other sites More sharing options...
kredzio Posted March 8, 2009 Author Share Posted March 8, 2009 $start = IniRead("readme.ini", "startstop", "start", 1) $stop = IniRead("readme.ini", "startstop", "stop", 1) HotKeySet($start, "mm") HotKeySet($stop, "end") While 1 Sleep(300) WEnd Func mm() MsgBox(0, "wdssdd", "sdddsds") EndFunc ;==>mm Func end() Exit 0 EndFunc ;==>end Works for me. You know that it's SHIFT+F8 and SHIFT+F7 which are you're hotkeys right/ I don't know what is wrong on me... I trying set only F8 or another key like "k", "l" and nothing to do - script not start Link to comment Share on other sites More sharing options...
James Posted March 8, 2009 Share Posted March 8, 2009 (edited) What version of Windows are you on? Also, try this. Look in the console window to see the output: MsgBox(0, "", "Script started") $start = IniRead("readme.ini", "startstop", "start", 1) ConsoleWrite($start & @CRLF) $stop = IniRead("readme.ini", "startstop", "stop", 1) ConsoleWrite($stop & @CRLF) HotKeySet($start, "mm") HotKeySet($stop, "end") While 1 Sleep(300) WEnd Func mm() MsgBox(0, "wdssdd", "sdddsds") EndFunc ;==>mm Func end() Exit 0 EndFunc ;==>end Edited March 8, 2009 by JamesBrooks Blog - Seriously epic web hosting - Twitter - GitHub - Cachet HQ Link to comment Share on other sites More sharing options...
kredzio Posted March 8, 2009 Author Share Posted March 8, 2009 XP SP2 but this Windows have change layout - look like Vista... maybe this is problem? Link to comment Share on other sites More sharing options...
James Posted March 8, 2009 Share Posted March 8, 2009 XP SP2 but this Windows have change layout - look like Vista... maybe this is problem?Highly doubtful. Try the script from above. Blog - Seriously epic web hosting - Twitter - GitHub - Cachet HQ Link to comment Share on other sites More sharing options...
Developers Jos Posted March 8, 2009 Developers Share Posted March 8, 2009 The INI file looks wrong to me. Schouldn't that be: [startstop] start=+{F8} stop=+{F7} SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. Link to comment Share on other sites More sharing options...
James Posted March 8, 2009 Share Posted March 8, 2009 The INI file looks wrong to me. Schouldn't that be: [startstop] start=+{F8} stop=+{F7}Actually, I don't think that matters, but it could be a Vista thing, I don't know. Blog - Seriously epic web hosting - Twitter - GitHub - Cachet HQ Link to comment Share on other sites More sharing options...
kredzio Posted March 8, 2009 Author Share Posted March 8, 2009 (edited) Highly doubtful. Try the script from above. I trying this... MsgBox(0, "", "Script started") $start = IniRead("readme.ini", "startstop", "start", 1) ConsoleWrite($start & @CRLF) $stop = IniRead("readme.ini", "startstop", "stop", 1) ConsoleWrite($stop & @CRLF) HotKeySet($start, "mm") HotKeySet($stop, "end") While 1 Sleep(300) WEnd Func mm() MsgBox(0, "wdssdd", "sdddsds") EndFunc ;==>mm Func end() Exit 0 EndFunc ;==>end Run script.exe In systray i have AutoIt click Shift+F8 and nothing to do :/ I trying change in .ini file from "{F8}" to {F8} and that same effect Edited March 8, 2009 by kredzio Link to comment Share on other sites More sharing options...
James Posted March 8, 2009 Share Posted March 8, 2009 You are pressing SHIFT and F8 not the actual + key, right? Blog - Seriously epic web hosting - Twitter - GitHub - Cachet HQ Link to comment Share on other sites More sharing options...
kredzio Posted March 8, 2009 Author Share Posted March 8, 2009 yes SHIFT and F8 Link to comment Share on other sites More sharing options...
James Posted March 8, 2009 Share Posted March 8, 2009 And do you have readme.ini in the same folder? From running my snippet you should see a message box appear. Do you have SciTE4AutoIt3 by the way? Blog - Seriously epic web hosting - Twitter - GitHub - Cachet HQ Link to comment Share on other sites More sharing options...
kredzio Posted March 8, 2009 Author Share Posted March 8, 2009 And do you have readme.ini in the same folder?From running my snippet you should see a message box appear. Do you have SciTE4AutoIt3 by the way?yes i have readme.ini in that same folderyes i have SciTE4AutoIt3 i download it today from AutoIt site Link to comment Share on other sites More sharing options...
James Posted March 8, 2009 Share Posted March 8, 2009 yes i have readme.ini in that same folder yes i have SciTE4AutoIt3 i download it today from AutoIt siteRight, run this: MsgBox(0, "", "Script started") ;$start = IniRead("readme.ini", "startstop", "start", 1) ;$stop = IniRead("readme.ini", "startstop", "stop", 1) HotKeySet("+{F8}", "mm") HotKeySet("+{F7}", "end") While 1 Sleep(300) WEnd Func mm() MsgBox(0, "wdssdd", "sdddsds") EndFunc ;==>mm Func end() Exit 0 EndFunc ;==>end Same hotkeys. Blog - Seriously epic web hosting - Twitter - GitHub - Cachet HQ Link to comment Share on other sites More sharing options...
kredzio Posted March 8, 2009 Author Share Posted March 8, 2009 (edited) Right, run this: MsgBox(0, "", "Script started") ;$start = IniRead("readme.ini", "startstop", "start", 1) ;$stop = IniRead("readme.ini", "startstop", "stop", 1) HotKeySet("+{F8}", "mm") HotKeySet("+{F7}", "end") While 1 Sleep(300) WEnd Func mm() MsgBox(0, "wdssdd", "sdddsds") EndFunc;==>mm Func end() Exit 0 EndFunc;==>end Same hotkeys. heh now working... so is something wrong with readme.ini Thanks so much... Edited March 8, 2009 by kredzio Link to comment Share on other sites More sharing options...
James Posted March 8, 2009 Share Posted March 8, 2009 (edited) heh now working... so is something wrong with readme.iniWell that doesn't suprise me. Try this: [startstop] start="+{F8}" stop="+{F7}" If that doesn't work then, I don't know sorry. Edited March 8, 2009 by JamesBrooks Blog - Seriously epic web hosting - Twitter - GitHub - Cachet HQ Link to comment Share on other sites More sharing options...
kredzio Posted March 8, 2009 Author Share Posted March 8, 2009 doesn't work Link to comment Share on other sites More sharing options...
James Posted March 8, 2009 Share Posted March 8, 2009 I don't know then sorry. Blog - Seriously epic web hosting - Twitter - GitHub - Cachet HQ Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now